package com.spring.annotation_config_demo;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "com.spring.annotation_config_demo.pkg1")
public class AppConfig {
	@Bean
	public MyService myService() {
		return new MyServiceImpl();
	}
}
